import createRequest from '../utils/mcRequest/custom/main'
import { DefaultConfig, ApiControlConfig } from '../utils/mcRequest/custom/index'
import { IApiControl as IFc } from '../utils/mcRequest/core/BaseInterface'
const request = createRequest(DefaultConfig, ApiControlConfig)

// 获取新闻列表
export function getNewsList(data: { page: number }, c: IFc = {}) {
    return request.get('/api/getNewsList', data, c);
}

// 获取新闻详情
export function getNewsById(data: { id: string }, c: IFc = {}) {
    return request.get('/api/getNewsById', data, c);
}